package com.droid.mvvmlib.base;

import com.droid.framwork.ui.BaseActivity;
import com.droid.framwork.ui.BaseDialog;
import com.droid.framwork.ui.SimpleDialog;

import androidx.annotation.NonNull;

/**
 * 基类 Dialog
 *
 * @author zyc0617
 * @since 2019/7/4 10:09
 */
public abstract class SuperBaseDialog extends SimpleDialog {

    private static final String TAG = "SuperBaseDialog";

    public SuperBaseDialog() {
        super();
    }

    @NonNull
    public BaseDialog show(@NonNull BaseActivity activity) {
//        BaseDialog baseDialog;
        // 在BaseDialog中show时会读取并解析布局文件
//        try (StrictModeContext ignored = StrictModeContext.allowDiskReads()) {
//            baseDialog = super.show(activity);
//        }
        return super.show(activity);
    }
}
